import request from '@/utils/request'

// 查询用户点赞表列表
export function listUserLike (query) {
  return request({
    url: '/platform/userLike/list',
    method: 'get',
    params: query
  })
}

// 查询用户点赞表详细
export function getUserLike (id) {
  return request({
    url: '/platform/userLike/' + id,
    method: 'get'
  })
}

// 新增用户点赞表
export function addUserLike (data) {
  return request({
    url: '/platform/userLike',
    method: 'post',
    data: data
  })
}

// 修改用户点赞表
export function updateUserLike (data) {
  return request({
    url: '/platform/userLike',
    method: 'put',
    data: data
  })
}

// 删除用户点赞表
export function delUserLike (id) {
  return request({
    url: '/platform/userLike/' + id,
    method: 'delete'
  })
}


// 导出用户点赞表
export function exportUserLike (query) {
  return request({
    url: '/platform/userLike/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/userLike/getInitData/' + dictTypes,
    method: 'get'
  })
}
